﻿<UserControl x:Class="devtm.Editor.TypeSelector.AttributeBuilder.TitleChoosePropertyTypeUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             HorizontalAlignment="Stretch"
             d:Height="26" d:DesignWidth="334" d:DesignHeight="26">
    <Grid>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="30" />
            <ColumnDefinition  />
            <ColumnDefinition  />
        </Grid.ColumnDefinitions>

        <Label Grid.Column="0" Padding="10,0,0,0"
               x:Name="Img" 
               FontWeight="Bold" FontSize="16" />

        <ComboBox Grid.Column="1" 
                  IsEditable="True" 
                  HorizontalAlignment="Stretch"
                  MinWidth="200"
                  Padding="5,0,5,0"
                  x:Name="Liste"
                  DisplayMemberPath="{Binding FullName}"
                  SelectedItem="{Binding SelectedItem}"
                  LostFocus="ComboLostFocus" 
                  SelectionChanged="ComboSelectionChanged"                   
                  FontStretch="Normal" 
                  PreviewTextInput="PreviewTextInput"
                  DropDownOpened="DropDownOpened" />

        <TextBox Grid.Column="1" 
                 HorizontalAlignment="Stretch"
                 MinWidth="200"
                 Padding="5,0,5,0"
                 LostFocus="ComboLostFocus" 
                 x:Name="Text"
                 Text="{Binding SelectedItemString}"
                 />
        
        <Label Grid.Column="1" Padding="10,0,5,0"
               Content="{Binding SelectedItemString }" 
               MinWidth="200"
               x:Name="MyLabel" 
               HorizontalAlignment="Stretch"
               MouseDown="LabelMouseDown" />

        <Label Grid.Column="2" 
               Padding="5,0,5,2"
               HorizontalAlignment="Right"
               x:Name="NameProperty" 
               FontStyle="Italic" 
               Foreground="#FFAAAAAA" />
    
    </Grid>
</UserControl>
